<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GonzalesReportActiveExpenseDetail.aspx.cs" Inherits="GonzalesReportActiveExpenseDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <link href="WebStyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
<!--
.HorizontalLineFromTop {	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #999999;
}
-->
    </style>
</head>
<body>
<form id="form1" runat="server">
  <div>
    <table width="100%" border="0" cellspacing="1" cellpadding="8">
      <tr>
        <td class="PageTitle"><asp:Label ID="Label_PageTitle" Text='Reports' runat="server" />
        </td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="1" cellpadding="2">
          <tr>
            <td width="170" rowspan="2" valign="top"><asp:Label CssClass="FormTitle" ID="Label_Information" runat="server" Text='Reports :: Active Expense Details' /></td>
            <td width="8" rowspan="2" class="VerticalDivider">&nbsp;</td>
            <td width="967"><asp:Table CellPadding="5" CellSpacing="0" ID="Table_MessageBox" Width="100%" runat="server" Visible="false">
              <asp:TableRow>
                <asp:TableCell CssClass="ErrorBox" ></asp:TableCell>
              </asp:TableRow>
            </asp:Table></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellpadding="5" cellspacing="0" class="FormBorder">
              <tr>
                <td colspan="4" align="right" class="FormLineItemAlt"><input type="image" name="ButtonCancel" id="ButtonCancel" src="img/popcalendar/close.gif"  /></td>
              </tr>
              <tr>
                <td width="25%" class="FormLineItem"><asp:Label CssClass="FormField" ID="Label_Entity" runat="server" Text='Entity:' />
                        <span class="MessageError">*</span></td>
                <td width="25%" class="FormLineItem"><asp:DropDownList CssClass="FormDropDown" ID="DropDownList_ByEntity" runat="server" AutoPostBack="True"></asp:DropDownList></td>
                <td width="25%" class="FormLineItem"><asp:Label ID="Label_GLCode" Text='Account Code:' runat="server" CssClass="FormField" /></td>
                <td width="25%" class="FormLineItem"><asp:TextBox CssClass="FormTextBox" ID="TextBox_Code" runat="server" /></td>
              </tr>
              <tr>
                <td class="FormLineItemAlt"><asp:Label CssClass="FormField" ID="Label_Name" runat="server" Text='Name in Local Language:' /></td>
                <td class="FormLineItemAlt"><asp:TextBox CssClass="FormTextBox" ID="TextBox_Name" runat="server" /></td>
                <td class="FormLineItemAlt"><asp:Label ID="Label_Category" Text='Category:' runat="server" CssClass="FormField" /></td>
                <td class="FormLineItemAlt"><span class="FormLineItem">
                  <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_Category" runat="server"></asp:DropDownList>
                </span></td>
              </tr>
              <tr>
                <td class="FormLineItem"><asp:Label ID="Label_Sorting" Text='Sorting:' runat="server" CssClass="FormField" /></td>
                <td colspan="3" class="FormLineItem"><span class="TableResultCriteriaBar">
                  <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortBy" runat="server"></asp:DropDownList>
                  </span><span class="TableResultCriteriaBar">
                    <asp:DropDownList CssClass="FormDropDown" ID="DropDownList_SortOrder" runat="server"></asp:DropDownList>
                  </span></td>
              </tr>
              <tr>
                <td colspan="4" class="FormLineItemAlt"><asp:Button CssClass="FormButton" ID="Button_Submit" runat="server" Text="Output to Screen" OnClick="Button_Submit_Click" />
                        <asp:Button CssClass="FormButton" ID="Button_CSV" runat="server" Text="Export to CSV File" OnClick="Button_CSV_Click" />                        
<asp:HyperLink ID="HyperLink_FileDownload" runat="server" CssClass="GridViewLink">HyperLink</asp:HyperLink></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td colspan="3" valign="top" class="HorizontalLineFromTop"></td>
          </tr>
          <tr>
            <td colspan="3" valign="top">&nbsp;
                  <asp:GridView ID="GridViewResult" runat="server" AutoGenerateColumns="false" OnRowCreated ="OnRowCreated" CellPadding="5" CssClass="FormBorder"
                    Width="100%">
                    <Columns>
                            <asp:BoundField DataField="Account Code" HeaderText="Account Code" HtmlEncode="False">
                                <ItemStyle HorizontalAlign="Center" Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Expense Name" HeaderText="Expense Name">
                                <ItemStyle HorizontalAlign="Left" Width="150px" />
                                <HeaderStyle HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name in Local Language" HeaderText="Name in Local Language">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Category" HeaderText="Category">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                    <RowStyle CssClass="GridViewItem" HorizontalAlign="center" />
                    <HeaderStyle CssClass="GridViewHeader" />                    
</asp:GridView>
            </td>
          </tr>
        </table></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
